include_directories(include)
include_directories(media)
include_directories(fdk_aac)

if(CMAKE_SUPPORT_AAC_DECODE)
    set(aac_decode_lib fdk-aac)
endif()

add_library(anyka_sdk ${src_chip_sdk} ${src_chip_ctrl_gpio})
target_link_libraries(anyka_sdk plat_common plat_mem plat_thread plat_log mpi_venc plat_dbg
    plat_vi plat_vpss plat_vqe plat_isp_sdk akaudiofilter plat_osal plat_ai plat_ao mpi_osd
    app_osd_ex ak_mrd app_its plat_timer app_video iconv ${aac_decode_lib})

set(ChipSdk_cache_lib anyka_sdk CACHE STRING INTERNAL FORCE)
